﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.LopHoc>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>

    <legend>
        Cập Nhật Thông Tin Lớp Học
    </legend>

    <%using (Html.BeginForm("Edit", "LopHoc", new { area = "Admin" }, FormMethod.Post, new { @class = "form-horizontal", @id = "formNew", @name = "formNew", enctype = "multipart/form-data" })) {%>
        <%: Html.ValidationSummary(true) %>
        
            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Tên Lớp Học:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.TenLopHoc, new { @class = "h30", placeholder = "Tên Tên Lớp Học...", onblur = "check_invalid();" })%>
                    <%: Html.ValidationMessageFor(m => m.TenLopHoc)%>
                    <div  style="color: Red; ">*Tên lớp học Tối thiểu 5 ký tự!</div>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="AdminContent">
                    Chi Nhánh:</label>
                <div class="controls">
                    <%= Html.DropDownList("MaCN")%> 
                </div>
            </div>

            <%--<div class="control-group">
                <label class="control-label" for="strFrom">
                    Tên Môn Học:</label>
                <div class="controls">
                    
                    <%: Html.TextBoxFor(t => t.MonHocReference.Value.TenMonHoc, new { @readonly = true })%>
                    <%= Html.DropDownList("MaMH")%> 
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Giáo Viên Phụ Trách:</label>
                <div class="controls">
                    <%= Html.DropDownList("MaGV")%>  
                    <%: Html.TextBoxFor(t => t.MaMonHoc, new { @readonly = true })%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Ca Học:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.MaMonHoc, new { @readonly = true })%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Thứ:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.MaMonHoc, new { @readonly = true })%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Ngày Khai Giảng:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.NgayKhaiGiang, new { @class = "h30", placeholder = "Ngày Khai Giảng...", @readonly = true })%>
                    <%: Html.ValidationMessageFor(m => m.NgayKhaiGiang)%>
            
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Ngày Kết Thúc:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.NgayKetThuc, new { @class = "h30", placeholder = "Ngày Kết Thúc..." })%>
                    <%: Html.ValidationMessageFor(m => m.NgayKetThuc)%>
            
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Loại Lớp Học :</label>
                <div class="controls">
                    <%= Html.DropDownList("MaLoaiLopHoc", (SelectList)ViewData["LoaiLH"])%> 
                    <%: Html.TextBoxFor(t => t.LoaiLopHocReference.Value.MoTa, new { @readonly = true })%>
                </div>
            </div>--%>
            
            <div class="control-group">
                <label class="control-label" for="AdminContent">
                    Tình Trạng:</label>
                <div class="controls">
                    <%= Html.RadioButtonFor(t => t.TinhTrang, "Sắp Mở")%> Sắp Mở
                    <%= Html.RadioButtonFor(t => t.TinhTrang, "Đang Học")%> Đang Học
                    <%= Html.RadioButtonFor(t => t.TinhTrang, "Kết Thúc")%> Kết Thúc
                    <%= Html.ValidationMessageFor(t => t.TinhTrang)%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="AdminContent">
                    Ngôn Ngữ:</label>
                <div class="controls">
                    <%= Html.RadioButtonFor(t => t.NgonNgu, "Tiếng Việt")%> Tiếng Việt
                    <%= Html.RadioButtonFor(t => t.NgonNgu, "English")%> Engish
                    <%= Html.ValidationMessageFor(t => t.NgonNgu)%>
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Số lượng học viên (chỉ áp dụng cho lớp nhóm):</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.SoLuong, new { @class = "h30" })%>
                    <%: Html.ValidationMessageFor(m => m.SoLuong)%>
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    <button id="btnUpdate" name="btnUpdate" type="submit" class="btn btn-primary"><i class="icon-refresh icon-white"></i>Cập Nhật</button>
                </div>
            </div>

    <% } %>

    <div>
        <a href="<%=ResolveUrl("~/Admin/LopHoc/Index") %>">
        <button class="btn btn-primary">
        <i class="icon-reply"></i>
            Quay lại danh sách
        </button></a>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

